package com.hb.study.design_patterns.chain_of_responsibility;

/**
 * 责任链2
 *
 * @author Mr.Huang
 * @version v0.1, ChainTwo.java, 2020/6/16 10:55, create by huangbiao.
 */
public class ChainTwo extends AbstractChain {

    public ChainTwo(int step) {
        super(step);
    }

    @Override
    void doChain() {
        System.out.println("ChainTwo执行");
        getChain().doChain();
    }

}

    